<?php
/**
 * @version SVN: $Id$
 * @package    fmcSeminaire
 * @subpackage Views
 * @author     EasyJoomla {@link http://www.easy-joomla.org Easy-Joomla.org}
 * @author     Ludovic Launer {@link }
 * @author     Created on 28-Nov-10
 * @license    GNU/GPL
 */

//-- No direct access
defined('_JEXEC') or die('=;)');

JHTML::_('behavior.tooltip');

##ECR_MAT_ORDERING_VIEW0##
?>
<form action="index.php" method="post" name="adminForm">

<div id="editcell">
	<table class="adminlist">
	<thead>
		<tr>
			<th width="5">
				<?php echo JText::_('ID'); ?>
			</th>
			<th width="20">
				<input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>);" />
			</th>
			<th>
				<?php echo JText::_('Titre Seminaire'); ?>
			</th>
			<th>
				<?php echo JText::_('Campagne'); ?>
			</th>
			<th width="5">
				<?php echo JText::_('Campagne ID'); ?>
			</th>
		</tr>
	</thead>
	<?php
	$k = 0;
	for ($i=0, $n=count($this->items); $i < $n; $i++):
		$row = $this->items[$i];
		$checked = JHTML::_('grid.id', $i, $row->seminaireId);
		$link = JRoute::_('index.php?option=com_fmcseminaire&controller=lesseminaires&task=edit&cid[]='.$row->seminaireId);

		?>
		<tr class="<?php echo "row$k"; ?>">
			<td>
				<?php echo $row->seminaireId; ?>
			</td>
			<td>
				<?php echo $checked; ?>
			</td>
			<td>
				<a href="<?php echo $link; ?>"><?php echo $row->greeting; ?></a>
			</td>
			<td>
				<?php echo $row->campagneName; ?>
			</td>
			<td>
				<?php echo $row->campagneId; ?>
			</td>
		</tr>
		<?php
		$k = 1 - $k;
	endfor;
	?>
	</table>
</div>

<input type="hidden" name="option" value="com_fmcseminaire" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="controller" value="fmcseminaire" />
</form>
